SetCookieRequest

data class SetCookieRequest(name: String, value: String, url: String?, domain: String?, path: String?, secure: Boolean?, httpOnly: Boolean?, sameSite: CookieSameSite?, expires: TimeSinceEpoch?, priority: CookiePriority?, sameParty: Boolean?, sourceScheme: CookieSourceScheme?, sourcePort: Int?)

Represents request frame that can be used with Network#setCookie operation call.

Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.

See also

Constructors

SetCookieRequest
Link copied to clipboard
fun SetCookieRequest(name: String, value: String, url: String? = null, domain: String? = null, path: String? = null, secure: Boolean? = null, httpOnly: Boolean? = null, sameSite: CookieSameSite? = null, expires: TimeSinceEpoch? = null, priority: CookiePriority? = null, sameParty: Boolean? = null, sourceScheme: CookieSourceScheme? = null, sourcePort: Int? = null)

Properties

domain
Link copied to clipboard
val domain: String? = null
Cookie domain.
expires
Link copied to clipboard
val expires: TimeSinceEpoch? = null
Cookie expiration date, session cookie if not set
httpOnly
Link copied to clipboard
val httpOnly: Boolean? = null
True if cookie is http-only.
name
Link copied to clipboard
val name: String
Cookie name.
path
Link copied to clipboard
val path: String? = null
Cookie path.
priority
Link copied to clipboard
val priority: CookiePriority? = null
Cookie Priority type.
sameParty
Link copied to clipboard
val sameParty: Boolean? = null
True if cookie is SameParty.
sameSite
Link copied to clipboard
val sameSite: CookieSameSite? = null
Cookie SameSite type.
secure
Link copied to clipboard
val secure: Boolean? = null
True if cookie is secure.
sourcePort
Link copied to clipboard
val sourcePort: Int? = null
Cookie source port.
sourceScheme
Link copied to clipboard
val sourceScheme: CookieSourceScheme? = null
Cookie source scheme type.
url
Link copied to clipboard
val url: String? = null
The request-URI to associate with the setting of the cookie.
value
Link copied to clipboard
val value: String
Cookie value.

Sources

jvm source
Link copied to clipboard